/**
 * 
 */
package com.lanswon.controller;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.fileupload.disk.DiskFileItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import com.lanswon.service.BusService;

/**
 * 
 * @ClassName: BusCOntroller.java
 * @Description: 该类的功能描述
 *
 * @version: v1.0.0
 * @author: zm
 * @date: 2018年5月29日 下午5:01:35
 *
 */
@Controller
@RequestMapping("front/bus")
public class BusController {
	@Autowired
	BusService busService;

	@RequestMapping("showBus")
	@ResponseBody
	public Map<String, Object> showBus(String busName) {
		return busService.showBus(busName);
	}

	@RequestMapping("showByNumAndDir")
	@ResponseBody
	public Map<String, Object> showByNumAndDir(String busName, String direction) {
		return busService.showByNumAndDir(busName, direction);
	}
}
